<?php

namespace app\model\sync_model;



use app\BaseModel;
use app\model\UserModel;
use think\model\relation\BelongsTo;

class SyncMessage extends BaseModel
{
    protected $name = 'sync_message';
    /**
     *
     * @return BelongsTo
     */
    public function getSyncUser(): BelongsTo
    {
        return $this->belongsTo(UserModel::class,'consultant_id')->bind(['nickname'=>'name']);
    }
}